'Requester "Continue" "First we will cycle the background color"'
'GetPalette pen=0'
old_pen = result
parse var old_pen "pen=" pen "red=" r "green=" g "blue=" b
x = "0123456789ABCDEF"
/* convert from hex to dec */
start = pos(substr(r, 3, 1), x) - 1
do i = start to 0 by -1
r = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = 1 to 15
r = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = 14 to start by -1
r = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = start to 0 by -1
g = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = 1 to 15
g = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = 14 to start by -1
g = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = start to 0 by -1
b = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = 1 to 15
b = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
do i = 14 to start by -1
b = "0x" || insert("","",0,8,substr(x, i+1, 1))
'SetPalette pen=0 red' r 'green' g 'blue' b
'StatusMsg "pen=0 red' r 'green' g 'blue' b '"'
end
'SetPalette ' || old_pen
'StatusMsg " "'
/*
** String requester / status msg
*/
'Requester "Continue" "Next you will be asked to type in a string.\n\nThe string will also be shown in the status area."'
'StringRequester "Enter your name:" ""'
'StatusMsg "Your name is:' result '"'
/*
** Load some directories and select some stuff
*/
'Requester "Continue" "Next we will load a couple of directories and\nselect some files and get the selected files\nfrom Rush.\n\nOn the left we will load SYS: and on the right C:."'
'GetPattern'
old_pat=result
'SetActiveSide LEFT'
'SetDirectory "sys:"'
'SetPattern "#?a#?"'
'All'
'SetActiveSide OTHER'
'SetDirectory "c:"'
'SetPattern "d#?"'
'All'
selected = "Files that were selected\n\nOn left:"
'SetActiveSide LEFT'
do while (1)
'GetSelected'
if result == "" then break
selected = selected || "\n " || result
end
selected = selected || "\n\nOn right:"
'SetActiveSide RIGHT'
do while (1)
'GetSelected'
if result == "" then break
selected = selected || "\n " || result
end
'Requester "Continue" "' || selected || '"'
'SetPattern "' || old_pat || '"'
/*
** Do some screenmode stuff
*/
'Requester "Continue" "Next we will try some different\nscreen modes from Arexx."'